<?php
    # Database api
    # Functions and variables for database management
    # 2012-04-22
?>
<?php

    /*$mysql_host = "mysql16.000webhost.com";
    $mysql_database = "a6338302_portfol";
    $mysql_user = "a6338302_adamaz";
    $mysql_password = "ADZongo134";*/

	$mysql_host = "127.0.0.1";
	$mysql_database = "monportfolio";
	$mysql_user = "root";
	$mysql_password = "";

	
	# Connect to the mysql server
	$connection = mysql_connect($mysql_host, $mysql_user, $mysql_password);

	if (!$connection) {
		die('Could not connect: ' . mysql_error());
	}
	else {
		# Select the mysql database to work with
		$db = mysql_select_db($mysql_database, $connection);
		if (!$db) {
			die('Could not select database: ' . mysql_error());
		}
	}
?>
